package com.cy.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.cy.pojo.Ttextpojo;
@Mapper
public interface Ttextdao {
	
	@Select("select * from text_text where ttid=#{id}")
	Ttextpojo selectTtext(String id);
	@Select("select COUNT(*) from text_text where ttid=#{id}")
	int COttext(String id);
	
	@Update("")
	int updateTtext(Ttextpojo ttext);
	
	
	@Insert("")
	int insertTtext(Ttextpojo ttext);
	
}
